package com.ruoyi.front.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.front.domain.Evaluation;
import com.ruoyi.front.service.EvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("front")
public class EvaluationController {
    @Autowired
    private EvaluationService evaluationService;

    @GetMapping("evaluation")
    public R list() {
        return evaluationService.list();
    }
    @PostMapping("evaluation")
    public R add(@RequestBody Evaluation evaluation){
        return evaluationService.add(evaluation);
    }
}
